package org.pqw.bookmodel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author kling
 * @since 2021-06-29
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("book_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
    @TableField("email")
    private String email;
    @TableField("phone")
    private String phone;
    @TableField("sex")
    private Integer sex;
    @TableField("avatar")
    private String avatar;
    @TableField("private_sign")
    private String privateSign;
    @TableField("status")
    private Boolean status;
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;
    @TableField("create_by")
    private String createBy;
    @TableField("gtm_modify")
    private LocalDateTime gtmModify;
    @TableField("modify_by")
    private String modifyBy;


}
